/**
 * 
 */
package com.auth.service;

import java.util.List;

import com.auth.model.Account;
import com.auth.model.Role;


public interface AccountService 
{
	public String encrypt(String str);
	
	public Account getAccount(String id, String password);
	public Account getAccount(String id);
	public List<Account> getAccounts();
	boolean saveAccount(Account operator, String type, Account account);
	public boolean updatePassword(Account operator, String id, String password);
	
	public boolean saveAccountMerchant(Account operator, String accountId, List<Integer> merchantIds);
	public boolean saveAccountSp(Account operator, String accountId, List<Integer> spIds);
	public boolean saveAccountChannel(Account operator, String accountId, List<Integer> channelIds);
	public boolean saveAccountCp(Account operator, String accountId, List<Integer> cpIds);
	
	public List<Integer> getAccountMerchant(String accountId);
	public List<Integer> getAccountSp(String accountId);
	public List<Integer> getAccountChannel(String accountId);
	public List<Integer> getAccountCp(String accountId);
	
	public List<Role> getRoles();
	public Role getRole(int id);
}
